//
//  ViewController.m
//  StringsApp
//
//  Created by iD Student on 7/9/13.
//  Copyright (c) 2013 iD Student. All rights reserved.
//

#import "ViewController.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad
{
    [super viewDidLoad];
	// Do any additional setup after loading the view, typically from a nib.
    welcomeMessage = [[NSString alloc] initWithString:@"Welcome to le game!"];
    welcomeLabel.text = welcomeMessage;
    playerScoreText = [[NSMutableString alloc] initWithString:@"Score: 0"];
    scoreLabel.text = playerScoreText;
    PlayerScore = 0;
}

- (IBAction)scoreButtonPressed:(id)sender
{
    PlayerScore++;
    scoreLabel.text = [NSString stringWithFormat:@"Score: %d", PlayerScore];
}


- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
